<?php

namespace app\admin\validate;

use think\Validate;

/**
 * Created by PhpStorm.
 * User: niuniu
 * Date: 2016/8/17
 * Time: 10:49
 */
class NoticeValidate extends Validate
{
    protected $rule = [
        'n_content' => 'require|max:500|min:2',
    ];
    protected $message = [
        'n_content.require' => '请填写公告内容',
        'n_content.max' => '名称不得超过500个字符(不区分中英文)',
        'n_content.min' => '公告名称不得小于2个字符(不区分中英文)',
    ];
}